﻿using UnityEngine;
using System.Collections;

public class WinMenuUI : MonoBehaviour {
	public GameObject MainMenu;
	private GameObject  WinMenu;
	// Use this for initialization
	void Start () {
		WinMenu = GameObject.Find ("WinMenu");
	}
	
	// Update is called once per frame
	void Update () {
		if (MainMenu != null) {
			Debug.Log("winMenu----"+MainMenu.name);		
		}
	}
	public void onclickBackMenu()
	{
		WinMenu.SetActive (false);
		MainMenu.SetActive (true);
	}
}
